package com.frank.oj.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.frank.model.entity.training.Training;
import com.frank.oj.model.vo.TrainingVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author frank
 * @Date 2024/5/4
 */
@Mapper
public interface GroupTrainingMapper extends BaseMapper<Training> {
    List<TrainingVO> getTrainingList(IPage<TrainingVO> iPage, @Param("gid") Long gid);

    List<Training> getAdminTrainingList(IPage<Training> iPage, @Param("gid") Long gid);
}
